import Vue from 'vue'
import App from './App'
import router from './router'
import store from '~vuex/store'
import filters from '~src/filters/index'

var VueCookie = require('vue-cookie')
var attachFastClick = require('fastclick')  // vue的click事件延迟300ms问题
attachFastClick.attach(document.body)
Vue.use(require('vue-wechat-title'))  //设置标题
window.Vue = Vue
Vue.use(VueCookie)
Object.keys(filters).forEach(k => Vue.filter(k, filters[k]))
new Vue({
  name:'body',
  template: '<App/>',
  store,
  components: { App},
  router: router
}).$mount('#page-app')
